v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::torque::cpp::File Class Reference

#include <cpp-builder.h>

Collaboration diagram for v8::internal::torque::cpp::File:

Public Member Functions

 File (std::ostream &stream)
 
void BeginIncludeGuard (const std::string &name)
 
void EndIncludeGuard (const std::string &name)
 
void BeginNamespace (std::string name)
 
void BeginNamespace (std::string name0, std::string name1)
 
void EndNamespace (const std::string &name)
 
void EndNamespace (const std::string &name0, const std::string &name1)
 
void AddInclude (std::string include)
 
template<typename T >
Fileoperator<< (const T &value)
 

Protected Member Functions

std::ostream & s ()
 

Private Attributes

std::ostream * stream_
 
std::set< std::string > includes_
 
std::stack< std::string > namespaces_
 

Detailed Description

Definition at line 180 of file cpp-builder.h.

Constructor & Destructor Documentation

◆ File()

v8::internal::torque::cpp::File::File ( std::ostream & stream)
inlineexplicit

Definition at line 182 of file cpp-builder.h.

Member Function Documentation

◆ AddInclude()

void v8::internal::torque::cpp::File::AddInclude ( std::string include)
inline

Definition at line 191 of file cpp-builder.h.

◆ BeginIncludeGuard()

void v8::internal::torque::cpp::File::BeginIncludeGuard ( const std::string & name)

Definition at line 120 of file cpp-builder.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BeginNamespace() [1/2]

void v8::internal::torque::cpp::File::BeginNamespace ( std::string name)

Definition at line 131 of file cpp-builder.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BeginNamespace() [2/2]

void v8::internal::torque::cpp::File::BeginNamespace ( std::string name0,
std::string name1 )

Definition at line 138 of file cpp-builder.cc.

Here is the call graph for this function:

◆ EndIncludeGuard()

void v8::internal::torque::cpp::File::EndIncludeGuard ( const std::string & name)

Definition at line 127 of file cpp-builder.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EndNamespace() [1/2]

void v8::internal::torque::cpp::File::EndNamespace ( const std::string & name)

Definition at line 143 of file cpp-builder.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EndNamespace() [2/2]

void v8::internal::torque::cpp::File::EndNamespace ( const std::string & name0,
const std::string & name1 )

Definition at line 150 of file cpp-builder.cc.

Here is the call graph for this function:

◆ operator<<()

template<typename T >
File & v8::internal::torque::cpp::File::operator<< ( const T & value)
inline

Definition at line 194 of file cpp-builder.h.

Here is the call graph for this function:

◆ s()

std::ostream & v8::internal::torque::cpp::File::s ( )
inlineprotected

Definition at line 200 of file cpp-builder.h.

Here is the caller graph for this function:

Member Data Documentation

◆ includes_

std::set<std::string> v8::internal::torque::cpp::File::includes_
private

Definition at line 204 of file cpp-builder.h.

◆ namespaces_

std::stack<std::string> v8::internal::torque::cpp::File::namespaces_
private

Definition at line 205 of file cpp-builder.h.

◆ stream_

std::ostream* v8::internal::torque::cpp::File::stream_
private

Definition at line 203 of file cpp-builder.h.


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