V8 Project
|
#include <ostreams.h>
Public Member Functions | |
OStringStream () | |
~OStringStream () | |
size_t | size () const |
size_t | capacity () const |
const char * | data () const |
const char * | c_str () const |
virtual OStringStream & | write (const char *s, size_t n) OVERRIDE |
virtual OStringStream & | flush () OVERRIDE |
![]() | |
OStream () | |
virtual | ~OStream () |
OStream & | operator<< (OStream &(*manipulator)(OStream &os)) |
OStream & | operator<< (short x) |
OStream & | operator<< (unsigned short x) |
OStream & | operator<< (int x) |
OStream & | operator<< (unsigned int x) |
OStream & | operator<< (long x) |
OStream & | operator<< (unsigned long x) |
OStream & | operator<< (long long x) |
OStream & | operator<< (unsigned long long x) |
OStream & | operator<< (double x) |
OStream & | operator<< (void *x) |
OStream & | operator<< (char x) |
OStream & | operator<< (signed char x) |
OStream & | operator<< (unsigned char x) |
OStream & | operator<< (const char *s) |
OStream & | put (char c) |
OStream & | dec () |
OStream & | hex () |
Private Member Functions | |
void | reserve (size_t requested_capacity) |
DISALLOW_COPY_AND_ASSIGN (OStringStream) | |
Static Private Member Functions | |
static char * | allocate (size_t n) |
static void | deallocate (char *s, size_t n) |
Private Attributes | |
size_t | size_ |
size_t | capacity_ |
char * | data_ |
Definition at line 72 of file ostreams.h.
|
inline |
|
inline |
Definition at line 77 of file ostreams.h.
References capacity_, data_, and deallocate().
|
inlinestaticprivate |
Definition at line 91 of file ostreams.h.
Referenced by reserve().
|
inline |
Definition at line 84 of file ostreams.h.
References data().
Referenced by v8::internal::FlagList::argv(), v8::internal::InsertIntoString(), v8::internal::operator<<(), v8::internal::compiler::operator<<(), v8::internal::compiler::anonymous_namespace{instruction-selector-arm-unittest.cc}::operator<<(), v8::internal::compiler::anonymous_namespace{instruction-selector-arm64-unittest.cc}::operator<<(), v8::internal::compiler::anonymous_namespace{instruction-selector-ia32-unittest.cc}::operator<<(), v8::internal::compiler::anonymous_namespace{instruction-selector-x64-unittest.cc}::operator<<(), v8::internal::JavaScriptFrame::Print(), v8::internal::Logger::SetUp(), v8::internal::Object::ShortPrint(), and v8::internal::compiler::RepresentationChanger::TypeError().
|
inline |
|
inline |
Definition at line 81 of file ostreams.h.
References data_.
Referenced by c_str().
|
inlinestaticprivate |
Definition at line 92 of file ostreams.h.
Referenced by reserve(), and ~OStringStream().
|
private |
|
virtual |
Implements v8::internal::OStream.
Definition at line 138 of file ostreams.cc.
|
private |
Definition at line 143 of file ostreams.cc.
References allocate(), capacity_, data_, deallocate(), and size_.
Referenced by write().
|
inline |
Definition at line 79 of file ostreams.h.
References size_.
Referenced by v8::internal::InsertIntoString().
|
virtual |
Implements v8::internal::OStream.
Definition at line 127 of file ostreams.cc.
References data_, reserve(), and size_.
|
private |
Definition at line 97 of file ostreams.h.
Referenced by capacity(), reserve(), and ~OStringStream().
|
private |
Definition at line 98 of file ostreams.h.
Referenced by data(), OStringStream(), reserve(), write(), and ~OStringStream().
|
private |
Definition at line 96 of file ostreams.h.