CloneSet37


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9201.000function_definition
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1933
InclusionConstraintGraph/SequenceOfNodes.h
29106
InclusionConstraintGraph/SetOfNodes.h
Clone Instance
1
Line Count
9
Source Line
33
Source File
InclusionConstraintGraph/SequenceOfNodes.h

                __forceinline Node *operator[] (std::size_t n)const {
                        if ((reinterpret_cast<std::size_t>(reinterpret_cast<char *>(m_connections)) & 1) != 0) {
                                // single node in sequence
                                assert(n == 0);
                                return reinterpret_cast<Node*>(reinterpret_cast<char *>(m_connections) -1);
                                                                                                               }
                        else   {
                                // multiple nodes in sequence
                                assert(n < m_connections->size());
                                return representation_to_pnode((*m_connections)[n]);
                               }
                                                                    }



Clone Instance
2
Line Count
9
Source Line
106
Source File
InclusionConstraintGraph/SetOfNodes.h

                __forceinline Node *operator[] (std::size_t n)const {
                        if ((reinterpret_cast<std::size_t>(reinterpret_cast<char *>(m_connections)) & 1) != 0) {
                                // single node in set
                                assert(n == 0);
                                return reinterpret_cast<Node *>(reinterpret_cast<char *>(m_connections) -1);
                                                                                                               }
                        else   {
                                // multiple nodes in set
                                assert(n < m_connections->size());
                                return representation_to_pnode((*m_connections)[n]);
                               }
                                                                    }



Clone AbstractionParameter Count: 0Parameter Bindings

__forceinline Node *operator[] (std::size_t n) const
  {
    if ((reinterpret_cast<std::size_t>(reinterpret_cast<char *>(m_connections)) & 1) != 0)
      {
        // single node in set
        // single node in sequence
        assert(n == 0);
        return reinterpret_cast<Node *>(reinterpret_cast<char *>(m_connections) - 1);
      }
    else
      {
        // multiple nodes in set
        // multiple nodes in sequence
        assert(n < m_connections->size());
        return representation_to_pnode((*m_connections)[n]);
      }
  }

 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None