v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <utils.h>
Public Member Functions | |
Collector (int initial_capacity=kMinCapacity) | |
virtual | ~Collector () |
void | Add (T value) |
Vector< T > | AddBlock (int size, T initial_value) |
Vector< T > | AddBlock (Vector< const T > source) |
void | WriteTo (Vector< T > destination) |
Vector< T > | ToVector () |
virtual void | Reset () |
int | size () |
Protected Member Functions | |
void | Grow (int min_capacity) |
virtual void | NewChunk (int new_capacity) |
Protected Attributes | |
List< Vector< T > > | chunks_ |
Vector< T > | current_chunk_ |
int | index_ |
int | size_ |
Static Protected Attributes | |
static const int | kMinCapacity = 16 |
|
inlineexplicit |
|
inline |
Definition at line 566 of file utils.h.
Referenced by FunctionLoggingParserRecorder::LogFunction(), FunctionLoggingParserRecorder::LogMessage(), TEST(), and FunctionLoggingParserRecorder::WriteString().
Definition at line 579 of file utils.h.
Referenced by CompleteParserRecorder::ExtractData(), and TEST().
|
inlineprotected |
Definition at line 653 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Add(), and Collector< unsigned char, growth_factor, max_growth >::AddBlock().
|
inlineprotectedvirtual |
Definition at line 679 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Grow().
|
virtual |
Reimplemented in SequenceCollector< T, growth_factor, max_growth >, and SequenceCollector< unsigned char >.
Definition at line 37 of file utils-inl.h.
Referenced by FunctionLoggingParserRecorder::LogMessage(), and SequenceCollector< unsigned char >::Reset().
|
inline |
Definition at line 613 of file utils.h.
Referenced by PartialParserRecorder::ExtractData(), CompleteParserRecorder::ExtractData(), and Collector< unsigned char, growth_factor, max_growth >::ToVector().
Definition at line 647 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::NewChunk(), Collector< unsigned char, growth_factor, max_growth >::WriteTo(), and Collector< unsigned char, growth_factor, max_growth >::~Collector().
Definition at line 648 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Add(), Collector< unsigned char, growth_factor, max_growth >::AddBlock(), Collector< unsigned char, growth_factor, max_growth >::Collector(), SequenceCollector< unsigned char >::EndSequence(), Collector< unsigned char, growth_factor, max_growth >::Grow(), Collector< unsigned char, growth_factor, max_growth >::NewChunk(), Collector< unsigned char, growth_factor, max_growth >::WriteTo(), and Collector< unsigned char, growth_factor, max_growth >::~Collector().
|
protected |
Definition at line 649 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Add(), Collector< unsigned char, growth_factor, max_growth >::AddBlock(), SequenceCollector< unsigned char >::DropSequence(), SequenceCollector< unsigned char >::EndSequence(), Collector< unsigned char, growth_factor, max_growth >::Grow(), Collector< unsigned char, growth_factor, max_growth >::NewChunk(), SequenceCollector< unsigned char >::StartSequence(), and Collector< unsigned char, growth_factor, max_growth >::WriteTo().
|
staticprotected |
Definition at line 646 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Grow().
|
protected |
Definition at line 650 of file utils.h.
Referenced by Collector< unsigned char, growth_factor, max_growth >::Add(), Collector< unsigned char, growth_factor, max_growth >::AddBlock(), SequenceCollector< unsigned char >::DropSequence(), Collector< unsigned char, growth_factor, max_growth >::size(), Collector< unsigned char, growth_factor, max_growth >::ToVector(), and Collector< unsigned char, growth_factor, max_growth >::WriteTo().