|
OpenMW
|
#include <recordptr.hpp>
Public Member Functions | |
| RecordPtrT () | |
| RecordPtrT (X *ptr) | |
| void | read (NIFStream *nif) |
| Read the index from the nif. More... | |
| void | post (NIFFile *nif) |
| Resolve index to pointer. More... | |
| const X * | getPtr () const |
| Look up the actual object from the index. More... | |
| X * | getPtr () |
| const X & | get () const |
| X & | get () |
| const X * | operator-> () const |
| Syntactic sugar. More... | |
| X * | operator-> () |
| bool | empty () const |
| Pointers are allowed to be empty. More... | |
Private Attributes | |
| union { | |
| intptr_t index | |
| X * ptr | |
| }; | |
A reference to another record. It is read as an index from the NIF, and later looked up in the index table to get an actual pointer.
|
inline |
|
inline |
|
inline |
Pointers are allowed to be empty.
|
inline |
|
inline |
|
inline |
Look up the actual object from the index.
|
inline |
|
inline |
Syntactic sugar.
|
inline |
|
inline |
Resolve index to pointer.
|
inline |
Read the index from the nif.
| union { ... } |
| intptr_t Nif::RecordPtrT< X >::index |
| X* Nif::RecordPtrT< X >::ptr |
1.8.6