CFx SDK Documentation  2022 SP0
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 
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdArray< OdDbFullSubentPath > OdDbFullSubentPathArray
Definition: DbSubentId.h:129
ptrdiff_t OdGsMarker
bool operator==(const OdDbBaseFullSubentPath &fullSubentPath) const
OdDbStubPtrArray m_ObjectIds
OdDbBaseFullSubentPath & operator=(const OdDbBaseFullSubentPath &fullSubentPath)
OdDbFullSubentPath(OdDbObjectIdArray objectIds, OdDbSubentId subId)
Definition: DbSubentId.h:66
bool operator==(const OdDbFullSubentPath &fullSubentPath) const
Definition: DbSubentId.h:88
const OdDbObjectIdArray & objectIds() const
Definition: DbSubentId.h:96
void objectIds(OdDbObjectIdArray &objectIdsArg) const
Definition: DbSubentId.h:77
OdDbFullSubentPath(OdDbObjectId entId, OdDb::SubentType type, OdGsMarker index)
Definition: DbSubentId.h:62
const OdDbSubentId subentId() const
Definition: DbSubentId.h:112
OdDbObjectIdArray & objectIds()
Definition: DbSubentId.h:104
OdDbFullSubentPath(OdDbStubPtrArray objectIds, OdDbSubentId subId)
Definition: DbSubentId.h:70
OdDbFullSubentPath(OdDbObjectId entId, OdDbSubentId subId)
Definition: DbSubentId.h:58
OdDbFullSubentPath(OdDb::SubentType type, OdGsMarker index)
Definition: DbSubentId.h:54
OdDbSubentId & subentId()
Definition: DbSubentId.h:120
GLuint index
Definition: gles2_ext.h:265
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274