18 #ifndef __itkValarrayImageContainer_h
19 #define __itkValarrayImageContainer_h
48 typename TElementIdentifier,
53 private std::valarray< TElement >
94 {
return this->ValarrayType::operator[](
id); }
98 {
return this->ValarrayType::operator[](
id); }
104 if ( this->
Size() > 0 )
106 return & ( this->ValarrayType::operator[](0) );
117 {
return static_cast< unsigned long >( this->ValarrayType::size() ); }
124 { this->ValarrayType::resize(num); }
130 { this->ValarrayType::resize( this->ValarrayType::size() ); }
134 { this->ValarrayType::resize(0); }
137 void Fill(
const TElement & value)
138 { this->ValarrayType::operator=(value); }
149 os << indent <<
"Pointer: "
154 os << indent <<
"Size: " << this->
Size() << std::endl;