Nuke binary plugins 15.1.5
 
Loading...
Searching...
No Matches
DD::Image::PrimitiveList Class Reference

#include <GeoInfo.h>

Inheritance diagram for DD::Image::PrimitiveList:
DD::Image::RefCountedObject

Public Member Functions

 PrimitiveList ()
 
 ~PrimitiveList () override
 
const PrimList & data () const
 
PrimList & data ()
 
size_t size () const
 
Primitive *& operator[] (const size_t i)
 
const Primitiveoperator[] (const size_t i) const
 
void reserve (int i)
 
size_t capacity () const
 
void push_back (Primitive *p)
 
bool empty () const
 
- Public Member Functions inherited from DD::Image::RefCountedObject
void ref ()
 increment the reference count
 
void unref ()
 decrement the reference count. delete object if this becomes zero.
 
int refcount () const
 get the reference counter
 

Detailed Description

A vector of Primitive with a custom BlockAllocator.

Constructor & Destructor Documentation

◆ PrimitiveList()

DD::Image::PrimitiveList::PrimitiveList ( )
inline

Constructs an empty vector of primitives.

◆ ~PrimitiveList()

DD::Image::PrimitiveList::~PrimitiveList ( )
inlineoverride

Deletes all primitives on destruction.

Member Function Documentation

◆ data() [1/2]

const PrimList & DD::Image::PrimitiveList::data ( ) const
inline

Access the underlying Primitive data.

◆ data() [2/2]

PrimList & DD::Image::PrimitiveList::data ( )
inline

Access the underlying Primitive data.

◆ size()

size_t DD::Image::PrimitiveList::size ( ) const
inline

How many Primitive are in this vector.

Referenced by DD::Image::GeometryList::add_primitive().

◆ operator[]() [1/2]

Primitive *& DD::Image::PrimitiveList::operator[] ( const size_t  i)
inline

Accesses the Primitive at index i. Doesn't check for out of bounds.

◆ operator[]() [2/2]

const Primitive * DD::Image::PrimitiveList::operator[] ( const size_t  i) const
inline

Accesses the Primitive at index i. Doesn't check for out of bounds.

◆ reserve()

void DD::Image::PrimitiveList::reserve ( int  i)
inline

Reserves a buffer for i Primitives.

Referenced by DD::Image::GeometryList::add_primitive().

◆ capacity()

size_t DD::Image::PrimitiveList::capacity ( ) const
inline

Returns how many Primitives the buffer can hold before it needs to be resized.

Referenced by DD::Image::GeometryList::add_primitive().

◆ push_back()

void DD::Image::PrimitiveList::push_back ( Primitive p)
inline

Adds a Primitive to the end of the vector.

Referenced by DD::Image::GeometryList::add_primitive().

◆ empty()

bool DD::Image::PrimitiveList::empty ( ) const
inline

Returns whether there are Primitives in this vector.



©2024 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.foundry.com