v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SequenceCollector< T, growth_factor, max_growth > Class Template Reference

#include <utils.h>

Inheritance diagram for SequenceCollector< T, growth_factor, max_growth >:
Collaboration diagram for SequenceCollector< T, growth_factor, max_growth >:

Public Member Functions

 SequenceCollector (int initial_capacity)
 
virtual ~SequenceCollector ()
 
void StartSequence ()
 
Vector< TEndSequence ()
 
void DropSequence ()
 
virtual void Reset ()
 
- Public Member Functions inherited from Collector< T, growth_factor, max_growth >
 Collector (int initial_capacity=kMinCapacity)
 
virtual ~Collector ()
 
void Add (T value)
 
Vector< TAddBlock (int size, T initial_value)
 
Vector< TAddBlock (Vector< const T > source)
 
void WriteTo (Vector< T > destination)
 
Vector< TToVector ()
 
int size ()
 

Additional Inherited Members

- Protected Member Functions inherited from Collector< T, growth_factor, max_growth >
void Grow (int min_capacity)
 
- Protected Attributes inherited from Collector< T, growth_factor, max_growth >
List< Vector< T > > chunks_
 
Vector< Tcurrent_chunk_
 
int index_
 
int size_
 
- Static Protected Attributes inherited from Collector< T, growth_factor, max_growth >
static const int kMinCapacity = 16
 

Detailed Description

template<typename T, int growth_factor = 2, int max_growth = 1 * MB>
class v8::internal::SequenceCollector< T, growth_factor, max_growth >

Definition at line 758 of file utils.h.

Constructor & Destructor Documentation

SequenceCollector ( int  initial_capacity)
inlineexplicit

Definition at line 760 of file utils.h.

virtual ~SequenceCollector ( )
inlinevirtual

Definition at line 764 of file utils.h.

Member Function Documentation

void DropSequence ( )
inline

Definition at line 780 of file utils.h.

Vector<T> EndSequence ( )
inline

Definition at line 771 of file utils.h.

Referenced by TEST().

virtual void Reset ( )
inlinevirtual

Reimplemented from Collector< T, growth_factor, max_growth >.

Definition at line 788 of file utils.h.

void StartSequence ( )
inline

Definition at line 766 of file utils.h.

Referenced by TEST().


The documentation for this class was generated from the following file: