Commit bf2544b5 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

leg character

parent f0f510b2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ public:

	typedef PsimagLite::Vector<SizeType>::Type VectorSizeType;
	typedef PsimagLite::Vector<VectorSizeType>::Type VectorVectorSizeType;
	typedef std::pair<char, SizeType> PairCharSizeType;
	typedef std::pair<unsigned char, SizeType> PairCharSizeType;

	enum IndexDirectionEnum {INDEX_DIR_IN, INDEX_DIR_OUT};

@@ -39,7 +39,7 @@ public:

	const char name() const { return tag_.first; }

	char& name() { return tag_.first; }
	unsigned char& name() { return tag_.first; }

	const SizeType& numericTag() const { return tag_.second; }

+2 −2
Original line number Diff line number Diff line
@@ -142,7 +142,7 @@ public:

	const PsimagLite::String& sRep() const { return srep_; }

	char& legTypeChar(SizeType i,
	unsigned char& legTypeChar(SizeType i,
	                  SizeType ind)
	{
		assert(i < data_.size());
@@ -271,7 +271,7 @@ public:
		return ntensors;
	}

	bool hasLegType(char c) const
	bool hasLegType(unsigned char c) const
	{
		SizeType ntensors = data_.size();
		for (SizeType i = 0; i < ntensors; ++i)
+2 −2
Original line number Diff line number Diff line
@@ -322,7 +322,7 @@ public:
		return INDEX_TYPE_DUMMY;
	}

	char& legTypeChar(SizeType ind)
	unsigned char& legTypeChar(SizeType ind)
	{
		assert(ind < legs_.size());
		return legs_[ind].name();
@@ -362,7 +362,7 @@ public:
		opaque_.maxSummed_ = maxIndex('s');
	}

	bool hasLegType(char c) const
	bool hasLegType(unsigned char c) const
	{
		SizeType total = legs_.size();
		for (SizeType i = 0; i < total; ++i) {