CFx SDK Documentation  2020SP3
DbSubentId.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 
26 
27 #ifndef ODDB_DBSUBENT_H
28 #define ODDB_DBSUBENT_H
30 #include "DbBaseSubentId.h"
31 #include "DbObjectId.h"
32 #include "IdArrays.h"
33 
49 {
50 public:
52  {
53  }
56  {
57  }
59  : OdDbBaseFullSubentPath(entId, subId)
60  {
61  }
64  {
65  }
67  : OdDbBaseFullSubentPath(*reinterpret_cast<OdDbStubPtrArray*>(&objectIds), subId)
68  {
69  }
71  : OdDbBaseFullSubentPath(objectIds, subId)
72  {
73  }
77  void objectIds(OdDbObjectIdArray& objectIdsArg) const
78  {
79  objectIdsArg = *reinterpret_cast<const OdDbObjectIdArray*>(&m_ObjectIds);
80  }
81 
83  {
84  OdDbBaseFullSubentPath::operator=(fullSubentPath);
85  return *this;
86  }
87 
88  bool operator==(const OdDbFullSubentPath& fullSubentPath) const
89  {
90  return OdDbBaseFullSubentPath::operator==(fullSubentPath);
91  }
92 
97  {
98  return *reinterpret_cast<const OdDbObjectIdArray*>(&m_ObjectIds);
99  }
100 
105  {
106  return *reinterpret_cast<OdDbObjectIdArray*>(&m_ObjectIds);
107  }
108 
112  const OdDbSubentId subentId() const
113  {
114  return m_SubentId;
115  }
116 
121  {
122  return m_SubentId;
123  }
124 };
125 
130 
131 #endif
132 
133 
OdDbBaseFullSubentPath::m_ObjectIds
OdDbStubPtrArray m_ObjectIds
Definition: DbBaseSubentId.h:249
OdDbFullSubentPath::objectIds
void objectIds(OdDbObjectIdArray &objectIdsArg) const
Definition: DbSubentId.h:77
OdDbFullSubentPath::OdDbFullSubentPath
OdDbFullSubentPath(OdDbObjectId entId, OdDbSubentId subId)
Definition: DbSubentId.h:58
OdDbBaseFullSubentPath
Definition: DbBaseSubentId.h:172
IdArrays.h
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdDbFullSubentPath::subentId
const OdDbSubentId subentId() const
Definition: DbSubentId.h:112
OdDbObjectId
Definition: DbObjectId.h:99
OdDbFullSubentPath::objectIds
const OdDbObjectIdArray & objectIds() const
Definition: DbSubentId.h:96
OdDbFullSubentPath
Definition: DbSubentId.h:49
OdArray< OdDbObjectId, OdMemoryAllocator< OdDbObjectId > >
OdGsMarker
ptrdiff_t OdGsMarker
Definition: OdPlatformSettings.h:889
OdDbFullSubentPath::OdDbFullSubentPath
OdDbFullSubentPath(OdDb::SubentType type, OdGsMarker index)
Definition: DbSubentId.h:54
index
GLuint index
Definition: gles2_ext.h:265
OdDbFullSubentPath::OdDbFullSubentPath
OdDbFullSubentPath(OdDbStubPtrArray objectIds, OdDbSubentId subId)
Definition: DbSubentId.h:70
OdDbFullSubentPath::subentId
OdDbSubentId & subentId()
Definition: DbSubentId.h:120
OdDbBaseFullSubentPath::operator=
OdDbBaseFullSubentPath & operator=(const OdDbBaseFullSubentPath &fullSubentPath)
Definition: DbBaseSubentId.h:204
OdDb::SubentType
SubentType
Definition: DbBaseSubentId.h:38
OdDbFullSubentPathArray
OdArray< OdDbFullSubentPath > OdDbFullSubentPathArray
Definition: DbSubentId.h:129
OdDbFullSubentPath::objectIds
OdDbObjectIdArray & objectIds()
Definition: DbSubentId.h:104
OdDbBaseFullSubentPath::m_SubentId
OdDbSubentId m_SubentId
Definition: DbBaseSubentId.h:250
DbObjectId.h
OdDbFullSubentPath::OdDbFullSubentPath
OdDbFullSubentPath()
Definition: DbSubentId.h:51
OdDbFullSubentPath::OdDbFullSubentPath
OdDbFullSubentPath(OdDbObjectIdArray objectIds, OdDbSubentId subId)
Definition: DbSubentId.h:66
OdDbBaseFullSubentPath::operator==
bool operator==(const OdDbBaseFullSubentPath &fullSubentPath) const
Definition: DbBaseSubentId.h:211
OdDbFullSubentPath::OdDbFullSubentPath
OdDbFullSubentPath(OdDbObjectId entId, OdDb::SubentType type, OdGsMarker index)
Definition: DbSubentId.h:62
OdDbFullSubentPath::operator==
bool operator==(const OdDbFullSubentPath &fullSubentPath) const
Definition: DbSubentId.h:88
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbSubentId
Definition: DbBaseSubentId.h:72