1 #ifndef OPENMW_COMPONENTS_NIF_RECORDPTR_HPP
2 #define OPENMW_COMPONENTS_NIF_RECORDPTR_HPP
46 ptr =
dynamic_cast<X*
>(r);
76 {
return ptr == NULL; }
95 for(
size_t i=0;i <
list.size();i++)
101 for(
size_t i=0;i <
list.size();i++)
106 {
return list.at(index); }
108 {
return list.at(index); }
111 {
return list.size(); }
128 struct NiKeyframeData;
129 class NiTriShapeData;
130 class NiSkinInstance;
131 class NiSourceTexture;
132 class NiRotatingParticlesData;
Definition: niffile.hpp:17
Definition: recordptr.hpp:84
X * operator->()
Definition: recordptr.hpp:71
RecordPtrT< Controller > ControllerPtr
Definition: recordptr.hpp:140
RecordPtrT< Extra > ExtraPtr
Definition: recordptr.hpp:136
X * ptr
Definition: recordptr.hpp:20
int getInt()
Definition: nifstream.hpp:47
const Ptr & operator[](size_t index) const
Definition: recordptr.hpp:105
Base class for all records.
Definition: record.hpp:100
RecordPtrT< NiPixelData > NiPixelDataPtr
Definition: recordptr.hpp:144
RecordPtrT< NiSourceTexture > NiSourceTexturePtr
Definition: recordptr.hpp:150
RecordPtrT< NiFloatData > NiFloatDataPtr
Definition: recordptr.hpp:145
std::vector< Ptr > list
Definition: recordptr.hpp:87
RecordPtrT< NiSkinData > NiSkinDataPtr
Definition: recordptr.hpp:142
size_t length() const
Definition: recordptr.hpp:110
RecordPtrT< NiAutoNormalParticlesData > NiAutoNormalParticlesDataPtr
Definition: recordptr.hpp:152
RecordPtrT< NiColorData > NiColorDataPtr
Definition: recordptr.hpp:146
const X * operator->() const
Syntactic sugar.
Definition: recordptr.hpp:69
RecordListT< Property > PropertyList
Definition: recordptr.hpp:155
const X * getPtr() const
Look up the actual object from the index.
Definition: recordptr.hpp:52
void post(NIFFile *nif)
Resolve index to pointer.
Definition: recordptr.hpp:38
void read(NIFStream *nif)
Read the index from the nif.
Definition: recordptr.hpp:27
RecordPtrT< NiUVData > NiUVDataPtr
Definition: recordptr.hpp:137
RecordPtrT< Controlled > ControlledPtr
Definition: recordptr.hpp:141
RecordPtrT< X > Ptr
Definition: recordptr.hpp:86
RecordPtrT< NiTriShapeData > NiTriShapeDataPtr
Definition: recordptr.hpp:148
RecordPtrT< NiRotatingParticlesData > NiRotatingParticlesDataPtr
Definition: recordptr.hpp:151
RecordPtrT< NiSkinInstance > NiSkinInstancePtr
Definition: recordptr.hpp:149
RecordPtrT< NiKeyframeData > NiKeyframeDataPtr
Definition: recordptr.hpp:147
RecordPtrT< NiMorphData > NiMorphDataPtr
Definition: recordptr.hpp:143
void post(NIFFile *nif)
Definition: recordptr.hpp:99
Definition: recordptr.hpp:16
RecordPtrT< NiVisData > NiVisDataPtr
Definition: recordptr.hpp:139
RecordListT< NiSourceTexture > NiSourceTextureList
Definition: recordptr.hpp:156
RecordPtrT< NiPosData > NiPosDataPtr
Definition: recordptr.hpp:138
RecordListT< Node > NodeList
Definition: recordptr.hpp:154
intptr_t index
Definition: recordptr.hpp:19
Definition: nifstream.hpp:26
RecordPtrT< Node > NodePtr
Definition: recordptr.hpp:133
void read(NIFStream *nif)
Definition: recordptr.hpp:90
Record * getRecord(size_t index) const
Get a given record.
Definition: niffile.hpp:69
X * getPtr()
Definition: recordptr.hpp:57
bool empty() const
Pointers are allowed to be empty.
Definition: recordptr.hpp:75
RecordPtrT()
Definition: recordptr.hpp:24
Ptr & operator[](size_t index)
Definition: recordptr.hpp:107