Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
testing::internal::NativeArray< Element > Class Template Reference

#include <gtest-internal.h>

Public Types

typedef Element value_type
 
typedef Element * iterator
 
typedef const Element * const_iterator
 

Public Member Functions

 NativeArray (const Element *array, size_t count, RelationToSourceReference)
 
 NativeArray (const Element *array, size_t count, RelationToSourceCopy)
 
 NativeArray (const NativeArray &rhs)
 
 ~NativeArray ()
 
size_t size () const
 
const_iterator begin () const
 
const_iterator end () const
 
bool operator== (const NativeArray &rhs) const
 

Detailed Description

template<typename Element>
class testing::internal::NativeArray< Element >

Definition at line 1074 of file gtest-internal.h.

Member Typedef Documentation

◆ const_iterator

template<typename Element >
const Element* testing::internal::NativeArray< Element >::const_iterator

Definition at line 1079 of file gtest-internal.h.

◆ iterator

template<typename Element >
Element* testing::internal::NativeArray< Element >::iterator

Definition at line 1078 of file gtest-internal.h.

◆ value_type

template<typename Element >
Element testing::internal::NativeArray< Element >::value_type

Definition at line 1077 of file gtest-internal.h.

Constructor & Destructor Documentation

◆ NativeArray() [1/3]

template<typename Element >
testing::internal::NativeArray< Element >::NativeArray ( const Element * array,
size_t count,
RelationToSourceReference  )
inline

Definition at line 1082 of file gtest-internal.h.

1082 {
1083 InitRef(array, count);
1084 }
int * count

◆ NativeArray() [2/3]

template<typename Element >
testing::internal::NativeArray< Element >::NativeArray ( const Element * array,
size_t count,
RelationToSourceCopy  )
inline

Definition at line 1087 of file gtest-internal.h.

1087 {
1088 InitCopy(array, count);
1089 }

◆ NativeArray() [3/3]

template<typename Element >
testing::internal::NativeArray< Element >::NativeArray ( const NativeArray< Element > & rhs)
inline

Definition at line 1092 of file gtest-internal.h.

1092 {
1093 (this->*rhs.clone_)(rhs.array_, rhs.size_);
1094 }

◆ ~NativeArray()

template<typename Element >
testing::internal::NativeArray< Element >::~NativeArray ( )
inline

Definition at line 1096 of file gtest-internal.h.

1096 {
1097 if (clone_ != &NativeArray::InitRef)
1098 delete[] array_;
1099 }

Member Function Documentation

◆ begin()

template<typename Element >
const_iterator testing::internal::NativeArray< Element >::begin ( ) const
inline

Definition at line 1103 of file gtest-internal.h.

1103{ return array_; }
Here is the caller graph for this function:

◆ end()

template<typename Element >
const_iterator testing::internal::NativeArray< Element >::end ( ) const
inline

Definition at line 1104 of file gtest-internal.h.

1104{ return array_ + size_; }
Here is the caller graph for this function:

◆ operator==()

template<typename Element >
bool testing::internal::NativeArray< Element >::operator== ( const NativeArray< Element > & rhs) const
inline

Definition at line 1105 of file gtest-internal.h.

1105 {
1106 return size() == rhs.size() &&
1107 ArrayEq(begin(), size(), rhs.begin());
1108 }
const_iterator begin() const
bool ArrayEq(const T *lhs, size_t size, const U *rhs)
Here is the call graph for this function:

◆ size()

template<typename Element >
size_t testing::internal::NativeArray< Element >::size ( ) const
inline

Definition at line 1102 of file gtest-internal.h.

1102{ return size_; }
Here is the caller graph for this function:

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