18 #ifndef __itkObjectStore_h
19 #define __itkObjectStore_h
62 template<
class TObjectType >
85 typedef enum { LINEAR_GROWTH = 0, EXPONENTIAL_GROWTH = 1 } GrowthStrategyType;
88 ObjectType * Borrow();
93 void Return(ObjectType *p);
117 itkSetMacro(GrowthStrategy, GrowthStrategyType);
118 itkGetConstMacro(GrowthStrategy, GrowthStrategyType);
122 void SetGrowthStrategyToExponential()
123 { this->SetGrowthStrategy(EXPONENTIAL_GROWTH); }
126 void SetGrowthStrategyToLinear()
127 { this->SetGrowthStrategy(LINEAR_GROWTH); }
131 virtual void PrintSelf(std::ostream & os,
Indent indent)
const;
146 {
if ( Begin != 0 ) {
delete[] Begin; } }
153 void operator=(
const Self &);
168 #ifndef ITK_MANUAL_INSTANTIATION
169 #include "itkObjectStore.hxx"