MCPcopy Create free account
hub / github.com/ImageEngine/cortex / HashedGrid

Class HashedGrid

include/IECoreVDB/VDBObject.h:119–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 };
118
119 class HashedGrid
120 {
121 public:
122 HashedGrid() : m_hashValid( false )
123 {
124 }
125
126 HashedGrid( openvdb::GridBase::Ptr grid, std::shared_ptr<LockedFile> file )
127 : m_grid( grid ),
128 m_hashValid( false ), m_lockedFile( file )
129 {
130 }
131
132 IECore::MurmurHash hash() const;
133 openvdb::GridBase::Ptr metadata() const;
134 openvdb::GridBase::Ptr grid() const;
135 bool unmodifiedFromFile() const;
136 void markedAsEdited();
137
138 private:
139 mutable openvdb::GridBase::Ptr m_grid;
140 mutable bool m_hashValid;
141 mutable IECore::MurmurHash m_hash;
142
143 mutable std::shared_ptr<LockedFile> m_lockedFile;
144 };
145
146 std::unordered_map<std::string, HashedGrid> m_grids;
147

Callers 2

VDBObjectMethod · 0.85
insertGridMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected